<template>
  <div class="">
    <svg :style="{ width, height }">
      <use :xlink:href="prifix + name" :fill=color></use>
    </svg>
  </div>
</template>

<script setup lang="ts">
defineProps({
  // 前缀
  prifix: {
    type: String,
    default: "#icon-",
  },
  name: String,
  color: {
    type: String,
    default: ''
  },
  width: {
    type: String,
    default: '16px'
  },
  height: {
    type: String,
    default: '16px'
  }
})
</script>

<style scoped></style>